Skip to content

Conversation

tubignat
Copy link
Contributor

@tubignat tubignat commented Aug 8, 2025

What changed?

Added a feature flag to switch between different blob encodings

Why?

To add the ability to change different blob encodings with a dynamic config

How did you test it?

Manually, and unit-tests

decoders: decoders,
}, nil
}

func (p *parser) ShardInfoToBlob(info *ShardInfo) (persistence.DataBlob, error) {
db := persistence.DataBlob{}
data, err := p.encoder.shardInfoToBlob(info)
encoding := p.dc.SerializationEncoding()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

  • this checking of dynamic config might be worthwhile building into a helper?
  • I don't see an obvious reason for this, so this is fine to ignore, but it'd be easy to throw the data being encoded to the dynamic-config as an an input if you wanted more granular control at runtime as a constraint?

@tubignat tubignat merged commit dedaaf5 into cadence-workflow:master Aug 21, 2025
29 checks passed
ansidev pushed a commit to ansidev/cadence that referenced this pull request Aug 27, 2025
* Add thrift_snappy endoding

* Move test payloads into a common file

* Add feature flag for serialization encoding

* Fix tests

* Fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants